package com.winning.pmph.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Table(name = "book_table")
@XmlRootElement(name = "Table")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class BookTable {
    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    private String bookId;

    @XmlElement(name = "Table_Number")
    private String tableNumber;

    @XmlElement(name = "Table_Title")
    private String tableTitle;

    @XmlElement(name = "Table_Notes")
    private String tableNotes;

    @XmlElement(name = "Identifier")
    private String identifier;

    @XmlElement(name = "Page_Number")
    private String pageNumber;

    @XmlElement(name = "Page_Number2")
    private String pageNumber2;

    @XmlElement(name = "ICD-10_code")
    @TableField("icd_10_code")
    private String icd10Code;

    @XmlElement(name = "ICD-9-CM_code")
    @TableField("icd_9_cm_code")
    private String icd9CmCode;

    @XmlElement(name = "Symptoms_classification")
    private String symptomsClassification;

    @XmlElement(name = "LE_classification")
    private String leClassification;

    @XmlElement(name = "Drugs_classification")
    private String drugsClassification;

    @XmlElement(name = "Table_Content")
    private String tableContent;

    @XmlElement(name = "Keywords")
    private String keywords;

    @XmlElement(name = "Format")
    private String format;

    @XmlElement(name = "Source_Id")
    private String sourceId;

    @XmlElement(name = "Location")
    private String location;
}
